export default {
    /**
     * 将后端的分页列表数据转化为适合el展示的分页
     */
    extractPage(data){
        let page = {};
        page.total = data.total;
        page.pageSize = data.pageSize;
        page.pageNum = data.pageNum;
        return page;
    },
    defaultPage(){
        let page = {};
        page.total = 0;
        page.pageSize = 10;
        page.pageNum = 1;
        page.pageSizes = [10, 20, 30, 40, 50, 100];
        return page;
    },
    toRequestPage(page){
        return {pageSize:page.pageSize,pageNum:page.pageNum}
    }
}
